/**
 * Copyright (c) 2015-2017, Henry Yang 杨勇 (gismail@foxmail.com).
 * <p>
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * <p>
 * http://www.apache.org/licenses/LICENSE-2.0
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.lambkit.module.pay.rpc.model.sql;

import com.lambkit.db.sql.ConditionMode;
import com.lambkit.db.sql.column.Column;
import com.lambkit.db.sql.column.Columns;
import com.lambkit.db.sql.column.Example;

import java.io.Serializable;
import java.util.List;

/**
 * @author Henry 杨勇 (孤竹行) 
 * @website: www.lambkit.com
 * @email: gismail@foxmail.com
 * @date 2019-11-05
 * @version 1.0
 * @since 1.0
 */
public class PayVestCriteria extends Columns implements Serializable {
	private static final long serialVersionUID = 1L;
	
	public static PayVestCriteria create() {
		return new PayVestCriteria();
	}
	
	public static PayVestCriteria create(Column column) {
		PayVestCriteria that = new PayVestCriteria();
		that.add(column);
        return that;
    }

    public static PayVestCriteria create(String name, Object value) {
        return (PayVestCriteria) create().eq(name, value);
    }
    
    public Example example() {
    	return Example.create("pay_vest", this);
    }
    
    /**
     * equals
     *
     * @param name
     * @param value
     * @return
     */
    public PayVestCriteria eq(String name, Object value) {
    	super.eq(name, value);
        return this;
    }

    /**
     * not equals !=
     *
     * @param name
     * @param value
     * @return
     */
    public PayVestCriteria ne(String name, Object value) {
    	super.ne(name, value);
        return this;
    }


    /**
     * like
     *
     * @param name
     * @param value
     * @return
     */

    public PayVestCriteria like(String name, Object value) {
    	super.like(name, value);
        return this;
    }
    
    public PayVestCriteria notLike(String name, Object value) {
    	super.notLike(name, value);
        return this;
    }

    /**
     * 大于 great than
     *
     * @param name
     * @param value
     * @return
     */
    public PayVestCriteria gt(String name, Object value) {
    	super.gt(name, value);
        return this;
    }

    /**
     * 大于等于 great or equal
     *
     * @param name
     * @param value
     * @return
     */
    public PayVestCriteria ge(String name, Object value) {
    	super.ge(name, value);
        return this;
    }

    /**
     * 小于 less than
     *
     * @param name
     * @param value
     * @return
     */
    public PayVestCriteria lt(String name, Object value) {
    	super.lt(name, value);
        return this;
    }

    /**
     * 小于等于 less or equal
     *
     * @param name
     * @param value
     * @return
     */
    public PayVestCriteria le(String name, Object value) {
    	super.le(name, value);
        return this;
    }
    
    public PayVestCriteria isnull(String name) {
    	super.isnull(name);
        return this;
    } 

    public PayVestCriteria notNull(String name) {
    	super.notNull(name);
        return this;
    } 
    
    public PayVestCriteria empty(String name) {
    	super.empty(name);
        return this;
    } 
    
    public PayVestCriteria notEmpty(String name) {
    	super.notEmpty(name);
        return this;
    } 
    
    public PayVestCriteria add(Column column) {
    	super.add(column);
    	return this;
    }
    
    /**************************/
	
	public void addCriterion(String name, Object value, ConditionMode logic, String property, String typeHandler, String valueType) {
		 if (value == null) {
			 throw new RuntimeException("Value for " + property + " cannot be null");
		 }
		 add(Column.create(name, value, logic, typeHandler, valueType));
	}
   
	public void addCriterion(String name, Object value1, Object value2, ConditionMode logic, String property, String typeHandler, String valueType) {
		 if (value1 == null || value2 == null) {
			 throw new RuntimeException("Between values for " + property + " cannot be null");
		 }
		 add(Column.create(name, value1, value2, logic, typeHandler, valueType));
	}
		 
	public PayVestCriteria andPayVestIdIsNull() {
		isnull("pay_vest_id");
		return this;
	}
	
	public PayVestCriteria andPayVestIdIsNotNull() {
		notNull("pay_vest_id");
		return this;
	}
	
	public PayVestCriteria andPayVestIdIsEmpty() {
		empty("pay_vest_id");
		return this;
	}

	public PayVestCriteria andPayVestIdIsNotEmpty() {
		notEmpty("pay_vest_id");
		return this;
	}
       public PayVestCriteria andPayVestIdEqualTo(java.lang.Integer value) {
          addCriterion("pay_vest_id", value, ConditionMode.EQUAL, "payVestId", "java.lang.Integer", "Float");
          return this;
      }

      public PayVestCriteria andPayVestIdNotEqualTo(java.lang.Integer value) {
          addCriterion("pay_vest_id", value, ConditionMode.NOT_EQUAL, "payVestId", "java.lang.Integer", "Float");
          return this;
      }

      public PayVestCriteria andPayVestIdGreaterThan(java.lang.Integer value) {
          addCriterion("pay_vest_id", value, ConditionMode.GREATER_THEN, "payVestId", "java.lang.Integer", "Float");
          return this;
      }

      public PayVestCriteria andPayVestIdGreaterThanOrEqualTo(java.lang.Integer value) {
          addCriterion("pay_vest_id", value, ConditionMode.GREATER_EQUAL, "payVestId", "java.lang.Integer", "Float");
          return this;
      }

      public PayVestCriteria andPayVestIdLessThan(java.lang.Integer value) {
          addCriterion("pay_vest_id", value, ConditionMode.LESS_THEN, "payVestId", "java.lang.Integer", "Float");
          return this;
      }

      public PayVestCriteria andPayVestIdLessThanOrEqualTo(java.lang.Integer value) {
          addCriterion("pay_vest_id", value, ConditionMode.LESS_EQUAL, "payVestId", "java.lang.Integer", "Float");
          return this;
      }

      public PayVestCriteria andPayVestIdBetween(java.lang.Integer value1, java.lang.Integer value2) {
    	  addCriterion("pay_vest_id", value1, value2, ConditionMode.BETWEEN, "payVestId", "java.lang.Integer", "Float");
    	  return this;
      }

      public PayVestCriteria andPayVestIdNotBetween(java.lang.Integer value1, java.lang.Integer value2) {
          addCriterion("pay_vest_id", value1, value2, ConditionMode.NOT_BETWEEN, "payVestId", "java.lang.Integer", "Float");
          return this;
      }
        
      public PayVestCriteria andPayVestIdIn(List<java.lang.Integer> values) {
          addCriterion("pay_vest_id", values, ConditionMode.IN, "payVestId", "java.lang.Integer", "Float");
          return this;
      }

      public PayVestCriteria andPayVestIdNotIn(List<java.lang.Integer> values) {
          addCriterion("pay_vest_id", values, ConditionMode.NOT_IN, "payVestId", "java.lang.Integer", "Float");
          return this;
      }
	public PayVestCriteria andPayTypeIdIsNull() {
		isnull("pay_type_id");
		return this;
	}
	
	public PayVestCriteria andPayTypeIdIsNotNull() {
		notNull("pay_type_id");
		return this;
	}
	
	public PayVestCriteria andPayTypeIdIsEmpty() {
		empty("pay_type_id");
		return this;
	}

	public PayVestCriteria andPayTypeIdIsNotEmpty() {
		notEmpty("pay_type_id");
		return this;
	}
       public PayVestCriteria andPayTypeIdEqualTo(java.lang.Integer value) {
          addCriterion("pay_type_id", value, ConditionMode.EQUAL, "payTypeId", "java.lang.Integer", "Float");
          return this;
      }

      public PayVestCriteria andPayTypeIdNotEqualTo(java.lang.Integer value) {
          addCriterion("pay_type_id", value, ConditionMode.NOT_EQUAL, "payTypeId", "java.lang.Integer", "Float");
          return this;
      }

      public PayVestCriteria andPayTypeIdGreaterThan(java.lang.Integer value) {
          addCriterion("pay_type_id", value, ConditionMode.GREATER_THEN, "payTypeId", "java.lang.Integer", "Float");
          return this;
      }

      public PayVestCriteria andPayTypeIdGreaterThanOrEqualTo(java.lang.Integer value) {
          addCriterion("pay_type_id", value, ConditionMode.GREATER_EQUAL, "payTypeId", "java.lang.Integer", "Float");
          return this;
      }

      public PayVestCriteria andPayTypeIdLessThan(java.lang.Integer value) {
          addCriterion("pay_type_id", value, ConditionMode.LESS_THEN, "payTypeId", "java.lang.Integer", "Float");
          return this;
      }

      public PayVestCriteria andPayTypeIdLessThanOrEqualTo(java.lang.Integer value) {
          addCriterion("pay_type_id", value, ConditionMode.LESS_EQUAL, "payTypeId", "java.lang.Integer", "Float");
          return this;
      }

      public PayVestCriteria andPayTypeIdBetween(java.lang.Integer value1, java.lang.Integer value2) {
    	  addCriterion("pay_type_id", value1, value2, ConditionMode.BETWEEN, "payTypeId", "java.lang.Integer", "Float");
    	  return this;
      }

      public PayVestCriteria andPayTypeIdNotBetween(java.lang.Integer value1, java.lang.Integer value2) {
          addCriterion("pay_type_id", value1, value2, ConditionMode.NOT_BETWEEN, "payTypeId", "java.lang.Integer", "Float");
          return this;
      }
        
      public PayVestCriteria andPayTypeIdIn(List<java.lang.Integer> values) {
          addCriterion("pay_type_id", values, ConditionMode.IN, "payTypeId", "java.lang.Integer", "Float");
          return this;
      }

      public PayVestCriteria andPayTypeIdNotIn(List<java.lang.Integer> values) {
          addCriterion("pay_type_id", values, ConditionMode.NOT_IN, "payTypeId", "java.lang.Integer", "Float");
          return this;
      }
	public PayVestCriteria andPrefixIsNull() {
		isnull("prefix");
		return this;
	}
	
	public PayVestCriteria andPrefixIsNotNull() {
		notNull("prefix");
		return this;
	}
	
	public PayVestCriteria andPrefixIsEmpty() {
		empty("prefix");
		return this;
	}

	public PayVestCriteria andPrefixIsNotEmpty() {
		notEmpty("prefix");
		return this;
	}
        public PayVestCriteria andPrefixLike(java.lang.String value) {
    	   addCriterion("prefix", value, ConditionMode.FUZZY, "prefix", "java.lang.String", "Float");
    	   return this;
      }

      public PayVestCriteria andPrefixNotLike(java.lang.String value) {
          addCriterion("prefix", value, ConditionMode.NOT_FUZZY, "prefix", "java.lang.String", "Float");
          return this;
      }
      public PayVestCriteria andPrefixEqualTo(java.lang.String value) {
          addCriterion("prefix", value, ConditionMode.EQUAL, "prefix", "java.lang.String", "String");
          return this;
      }

      public PayVestCriteria andPrefixNotEqualTo(java.lang.String value) {
          addCriterion("prefix", value, ConditionMode.NOT_EQUAL, "prefix", "java.lang.String", "String");
          return this;
      }

      public PayVestCriteria andPrefixGreaterThan(java.lang.String value) {
          addCriterion("prefix", value, ConditionMode.GREATER_THEN, "prefix", "java.lang.String", "String");
          return this;
      }

      public PayVestCriteria andPrefixGreaterThanOrEqualTo(java.lang.String value) {
          addCriterion("prefix", value, ConditionMode.GREATER_EQUAL, "prefix", "java.lang.String", "String");
          return this;
      }

      public PayVestCriteria andPrefixLessThan(java.lang.String value) {
          addCriterion("prefix", value, ConditionMode.LESS_THEN, "prefix", "java.lang.String", "String");
          return this;
      }

      public PayVestCriteria andPrefixLessThanOrEqualTo(java.lang.String value) {
          addCriterion("prefix", value, ConditionMode.LESS_EQUAL, "prefix", "java.lang.String", "String");
          return this;
      }

      public PayVestCriteria andPrefixBetween(java.lang.String value1, java.lang.String value2) {
    	  addCriterion("prefix", value1, value2, ConditionMode.BETWEEN, "prefix", "java.lang.String", "String");
    	  return this;
      }

      public PayVestCriteria andPrefixNotBetween(java.lang.String value1, java.lang.String value2) {
          addCriterion("prefix", value1, value2, ConditionMode.NOT_BETWEEN, "prefix", "java.lang.String", "String");
          return this;
      }
        
      public PayVestCriteria andPrefixIn(List<java.lang.String> values) {
          addCriterion("prefix", values, ConditionMode.IN, "prefix", "java.lang.String", "String");
          return this;
      }

      public PayVestCriteria andPrefixNotIn(List<java.lang.String> values) {
          addCriterion("prefix", values, ConditionMode.NOT_IN, "prefix", "java.lang.String", "String");
          return this;
      }
	public PayVestCriteria andParamIsNull() {
		isnull("param");
		return this;
	}
	
	public PayVestCriteria andParamIsNotNull() {
		notNull("param");
		return this;
	}
	
	public PayVestCriteria andParamIsEmpty() {
		empty("param");
		return this;
	}

	public PayVestCriteria andParamIsNotEmpty() {
		notEmpty("param");
		return this;
	}
        public PayVestCriteria andParamLike(java.lang.String value) {
    	   addCriterion("param", value, ConditionMode.FUZZY, "param", "java.lang.String", "String");
    	   return this;
      }

      public PayVestCriteria andParamNotLike(java.lang.String value) {
          addCriterion("param", value, ConditionMode.NOT_FUZZY, "param", "java.lang.String", "String");
          return this;
      }
      public PayVestCriteria andParamEqualTo(java.lang.String value) {
          addCriterion("param", value, ConditionMode.EQUAL, "param", "java.lang.String", "String");
          return this;
      }

      public PayVestCriteria andParamNotEqualTo(java.lang.String value) {
          addCriterion("param", value, ConditionMode.NOT_EQUAL, "param", "java.lang.String", "String");
          return this;
      }

      public PayVestCriteria andParamGreaterThan(java.lang.String value) {
          addCriterion("param", value, ConditionMode.GREATER_THEN, "param", "java.lang.String", "String");
          return this;
      }

      public PayVestCriteria andParamGreaterThanOrEqualTo(java.lang.String value) {
          addCriterion("param", value, ConditionMode.GREATER_EQUAL, "param", "java.lang.String", "String");
          return this;
      }

      public PayVestCriteria andParamLessThan(java.lang.String value) {
          addCriterion("param", value, ConditionMode.LESS_THEN, "param", "java.lang.String", "String");
          return this;
      }

      public PayVestCriteria andParamLessThanOrEqualTo(java.lang.String value) {
          addCriterion("param", value, ConditionMode.LESS_EQUAL, "param", "java.lang.String", "String");
          return this;
      }

      public PayVestCriteria andParamBetween(java.lang.String value1, java.lang.String value2) {
    	  addCriterion("param", value1, value2, ConditionMode.BETWEEN, "param", "java.lang.String", "String");
    	  return this;
      }

      public PayVestCriteria andParamNotBetween(java.lang.String value1, java.lang.String value2) {
          addCriterion("param", value1, value2, ConditionMode.NOT_BETWEEN, "param", "java.lang.String", "String");
          return this;
      }
        
      public PayVestCriteria andParamIn(List<java.lang.String> values) {
          addCriterion("param", values, ConditionMode.IN, "param", "java.lang.String", "String");
          return this;
      }

      public PayVestCriteria andParamNotIn(List<java.lang.String> values) {
          addCriterion("param", values, ConditionMode.NOT_IN, "param", "java.lang.String", "String");
          return this;
      }
}